<?php 
//商品的删除
	include_once("./com.php");
	$pid=$_GET['pid'];
	$res="delete from product where pid='$pid'";
	mysql_query($res);
	if(mysql_affected_rows()>0){
		echo "<script>
				alert('删除成功')
				location.href='product.php'
				</script>";
	}else{
		echo "<script>
				alert('删除失败')
				location.href='product.php'
				</script>";
	}




 ?>